/* 论坛模块样式 */
.forum-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.forum-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-xl);
}

.forum-header {
  margin-bottom: var(--spacing-xl);
}

.forum-filters {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.filter-button {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary-600);
  cursor: pointer;
  transition: all var(--transition-fast) var(--easing-standard);
}

.filter-button:hover {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

.filter-button.active {
  background-color: var(--primary-200);
  color: var(--primary-900);
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal) var(--easing-standard);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.post-title {
  font-size: 1.25rem;
  color: var(--primary-900);
  margin: 0;
}

.post-meta {
  display: flex;
  gap: var(--spacing-md);
  color: var(--primary-500);
  font-size: 0.875rem;
}

.post-content {
  color: var(--primary-700);
  margin-bottom: var(--spacing-md);
}

.post-tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.forum-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 1.125rem;
  color: var(--primary-900);
  margin-bottom: var(--spacing-lg);
}

.hot-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hot-topic-item {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--primary-100);
}

.hot-topic-item:last-child {
  border-bottom: none;
}

.hot-topic-link {
  color: var(--primary-700);
  text-decoration: none;
  transition: color var(--transition-fast) var(--easing-standard);
}

.hot-topic-link:hover {
  color: var(--primary-900);
}

.create-post-button {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-600);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast) var(--easing-standard);
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-post-button:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 数据包模块样式 */
.motion-pack-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--primary-200);
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.motion-card {
  position: relative;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal) var(--easing-standard);
  overflow: hidden;
}

.motion-card:hover {
  transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.1);
}

.preview-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: var(--primary-100);
  overflow: hidden;
}

.preview-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.card-header h3 {
  font-size: 1rem;
  color: var(--primary-900);
  margin: 0;
  flex: 1;
}

.format-tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.format-tag.fbx {
  background-color: var(--accent-100);
  color: var(--accent-700);
}

.format-tag.bvh {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.file-size {
  color: var(--primary-500);
}

.price-tag {
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.price-tag.free {
  background: linear-gradient(135deg, var(--success-100), var(--success-200));
  color: var(--success-700);
}

.price-tag.paid {
  background: linear-gradient(135deg, var(--error-100), var(--error-200));
  color: var(--error-700);
}

.download-button {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--primary-100);
  color: var(--primary-600);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  cursor: not-allowed;
  opacity: 0.7;
  transition: all var(--transition-fast) var(--easing-standard);
}

.download-button:not(:disabled):hover {
  background-color: var(--primary-200);
  color: var(--primary-700);
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .motion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .forum-main {
    grid-template-columns: 1fr;
  }

  .motion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .forum-container,
  .motion-pack-container {
    padding: var(--spacing-md);
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .motion-grid {
    grid-template-columns: 1fr;
  }
}

/* 触屏设备优化 */
@media (hover: none) {
  .post-card,
  .motion-card {
    transition: transform var(--transition-normal) var(--easing-standard);
  }

  .post-card:active,
  .motion-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.12);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .post-card,
  .motion-card,
  .filter-button,
  .download-button,
  .create-post-button {
    transition: none;
  }
  
  .post-card:hover,
  .motion-card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
} 